<template>
  <div @click="handleDecrement">
    <p>count: {{ value }}</p>
  </div>
</template>

<script lang="ts">
export default {
  props: {
    value: {
      type: Number,
      default: 0,
    },
  },
  methods: {
    handleDecrement() {
      this.$emit("input", this.value - 1);
    },
  },
};
</script>
